import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/device-type/page',
    method: 'post',
    data
  })
}
export function del(id) {
  return request({
    url: `/device-type/delete/${id}`,
    method: 'post',
  })
}
export function typeList() {
  return request({
    url: '/device-type/list',
    method: 'get',
  })
}
export function add(data) {
  return request({
    url: '/device-type/add',
    method: 'post',
    data
  })
}

export function update(data) {
    return request({
      url: '/device-type/update',
      method: 'post',
      data
    })
  }

  export function industryList() {
    return request({
      url: '/industry/list',
      method: 'get',
    })
  }